#include<iostream>

using namespace std;

int main(int argc, char* argv[], char* env[])
{
    cout << "begin running..." << endl;

    cout << "下面是命令行参数" << endl;
    for(int i = 0; i < argc; i++)
    {
        cout << argv[i] << endl;
    }

    cout << "下面是环境变量" << endl;
    for(int i = 0; env[i]; i++)
    {
        cout << env[i] << endl;
    }

    cout << "after running..." << endl;

    return 0;
}